-- submit_monster_captain
-- created by panyl
-- 海怪船长

return {
    doAction = function(action)
        local pos = action.pos;
        local classId = action.data;

        if 1 == MonsterCaptainM.query(classId, "equipment") then
            return MonsterCaptainM.doEquip(pos, classId);
        else
            return MonsterCaptainM.feed(pos, classId);
        end
    end,
};
